package automatique;

import jwnl.JWNLDistances;

public class Element {

    String Libelet;
    String Value;

    public Element(String L, String V) {
        Libelet = L;
        Value = V;
    }

    public double distance(Element e, JWNLDistances d) {

        String v1 = this.Value;
        String v2 = e.Value;

        return (d.computeSimilarity(v1, v2) * 100); //provisoire
    }

    boolean equals(String V) {
        return (this.Value.equals(V.toLowerCase()));
    }
}
